import { PaymentDetails,PageResult } from '../types/global'
import { http } from '@/utils/http'


export const createAliPayPage = (orderId: string) => {
  return http<string>({
    method: 'GET',
	url: `/alipay/create/${orderId}`,
   
  })
}

export const getPaidList = () => {
  return http<PageResult<PaymentDetails>>({
    method: 'GET',
	url: `/app/payment/page`,
   
  })
}

export const getUnPaidList = (orderId: string) => {
  return http<PageResult<PaymentDetails>>({
    method: 'GET',
	url: `/alipay/create/${orderId}`,
   
  })
}
